package  com.hq.fxh.No0_ChengQu.Activity;

import android.content.Intent;
import android.os.Handler;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Window;
import android.view.WindowManager;


public class SplashActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
                WindowManager.LayoutParams.FLAG_FULLSCREEN);
        this.requestWindowFeature(Window.FEATURE_NO_TITLE);


        new Handler().postDelayed(new Runnable() {
            public void run() {
              Intent it = new Intent();
              it.setClass(SplashActivity.this, HomeActivity.class);
             startActivity(it);
                finish();
            }
        }, 1000 * 2);
    }


}
